{extend name="common/form" /}
{block name="form" /}
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">用户信息</div>
        </div>
        <div class="widget-body am-fr">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black " id="example-r">
                    <tbody>

                    <tr class="even gradeC">
                        <td>订单号</td>
                        <td style="color:red;">{$info.order_number}</td>
                    </tr>
                    <tr class="gradeX">
                        <td>回收类型</td>
                        <td>{$info.type_name}</td>
                    </tr>
                    <tr class="gradeX">
                        <td>订单状态</td>
                        <td> {$info.order_status ==0?"未接单":""}{$info.order_status ==1?"已接单":""}{$info.order_status ==2?"已完成":""}{$info.order_status ==6?"已取消":""}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单人</td>
                        <td>{$info.true_name}({$info.address_type =="1"?"住宅 ":""}{$info.address_type =="2"?"商铺":""}{$info.address_type =="3"?"写字楼":""}{$info.address_type =="4"?"工厂":""})</td>
                    </tr>

                    <tr class="even gradeC">
                        <td>下单人电话</td>
                        <td>{$info.phone}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单地址</td>
                        <td>{$info.address} {$info.address_name} {$info.floor_address}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>预估重量</td>
                        <td>{$info.weight_type ==1?"20-50公斤":""}
                            {$info.weight_type ==2?"50-100公斤":""}
                            {$info.weight_type ==3?"100公斤以上":""}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单备注</td>
                        <td>{$info.remarks} </td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单拍照</td>
                        <td>
                            {foreach $info.images as $v}
                                    <img src="{$v}" style="width: 80px;height: 80px;">
                            {/foreach}

                        </td>
                    </tr>
                    <tr class="even gradeC">
                        <td>预约时间</td>
                        <td>{$info.appointment_date} {$info.appointment_time}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>下单时间</td>
                        <td>{$info.create_time}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>所属片区</td>
                        <td>{$info.region_name}</td>
                    </tr>
                    <tr class="even gradeC">
                        <td>回收总类</td>
                        <td>
                            {foreach $info.all_type as $vv}
                                <div style="color: red;"> {$vv.typename} : : {$vv.weight_name}</div>
                            {/foreach}
                        </td>
                    </tr>
                    {if $info.order_status ==1 ||  $info.order_status ==2}
                        <tr class="even gradeC">
                            <td>回收员</td>
                            <td>{$info.accept_user_name}</td>
                        </tr>
                        <tr class="even gradeC">
                            <td>回收员电话</td>
                            <td>{$info.accept_user_phone}</td>
                        </tr>
                        <tr class="even gradeC">
                            <td>接单时间</td>
                            <td>{$info.accept_time}</td>
                        </tr>
                        {if $info.order_status ==2}
                            <tr class="even gradeC">
                                <td>完成时间</td>
                                <td>{$info.success_time}</td>
                            </tr>
                            <tr class="even gradeC" style="color: red;">
                                <td>结算金额</td>
                                <td>{$info.total_money}</td>
                            </tr>
                            <tr class="even gradeC">
                                <td>结算积分</td>
                                <td>{$info.total_integral}</td>
                            </tr>
                            {foreach $info.details as $v}
                                    <tr class="even gradeC" >
                                        <td>结算商品</td>
                                        <td style="padding-left: 20px;">{$v.small_type_name} ： {$v.number}{$v.unit} * {$v.price}元 = {$v.number*$v.price}</td>
                                    </tr>

                            {/foreach}
                        {/if}
                    {/if}




                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>
{/block}
{/extend}